this is wrong regex. try `"-65".match /\A\s*\d+/`