remove pattern words in build phrase