remove left over function escapeRegExp