You will be given a long text composed of words which are seperated by space. Your task is put a '*' between each letter of each word, but you may not put a '*' between words,or at the beginning of end of the words. You don't need to worry about punctuation marks ('.', ',', ';') but you must preserve multiple spaces. Example:text = "This is an example of what I have in mind"Result:". T*h*i*s i*s a*n e*x*a*m*p*l*e o*f w*h*a*t I h*a*v*e i*n m*i*n*d".
public static string PutStarBetweenEachLetter(string text) { return text.Split(' ').Select(i => i.ToCharArray().ToString("*")).ToString(" "); }