The function takes a string input