Ignore regex metacharacters in name matching
fixed error message when trying to clear non-matching string