This ultimately calls `stringByTrimmingCharactersInSet:` which only trims newlines from the start and end of the string.