strip whitespace during loading