simple function to remove whitespace
RemoveSpaces(x)
x
string
RemoveSpaces(" No More S p a c e s") # [1] "NoMoreSpaces"