Trim bad characters at the end of actor search