To prevent bugs resulting from user input, remove leading and trailing
whitespace from each line