Sanitize name by removing ? and trailing whitespace