fixing spaces in strings