To add space between strings, iterate through the characters of the string and add a space whenever an uppercase letter is encountered.
To remove space between strings, iterate through the characters of the string and skip the spaces.
To remove spaces in the left side of the string, iterate through the characters of the string and skip the spaces until an alphabet character is encountered.
To remove spaces in the right side of the string, iterate through the characters of the string in reverse order and skip the spaces until an alphabet character is encountered.