removePattern() implemented