sanitize user and sample name input