The function takes a string input and returns a shortened version of the input string.

