strip whitespace on read