Remove unnecessary character from regexp