A sign-up form asks for a name, and people often paste it with stray spaces around it, like " Alice ". If it’s stored as is, searches break, because "Alice " and "Alice" look the same on screen but don’t match.
Complete the function trim so it meets these requirements:
text has no spaces at the start or the end."Mary Ann", stay.text[i].[ Alice] -> [Alice]
[Bob ] -> [Bob]
[ Mary Ann ] -> [Mary Ann]
[ ] -> []