Remove redundant RegExp constructor