add a test (bouh written code without test) and escape regexp string