Remove extra character from the RegExp mask