solve string exp issue for regexp