Check for reserved keyword after downcasing

Uppercase USER isn't reserved, but lowercase user is and needs to be quoted.