whitespace regexp optimization