fix parse_subject_name for all spaces input