Fixing regex for trailing whitespace