The function takes a string input and returns a modified version of it based on the length of the input string.

