remove redundant "i" flag for regexp