trim all elements in an array (remove leading and trailing spaces) | erentzen.com