if lines differ only in whitespace, they are still eligible to be trimmed at the beginning or ending.