Remove spaces from a given string | C # program to remove all spaces from a string ; Function to remove all spaces from a given string ; Driver Code
using System ; class GFG { static String removeSpace ( String str ) { str = str . Replace ( " ▁ " , " " ) ; return str ; } public static void Main ( ) { String str = " g ▁ eeks ▁ for ▁ ge ▁ eeks ▁ " ; Console . WriteLine ( removeSpace ( str ) ) ; } }