The function takes a string input and modifies it based on the input itself.
