All you need to do, is run through the string. Find the spaces and remove those elements of the char array, then just turn the next character ToUpper.