Remove unnecessary spaces in get_gpa_spec