Switch to using ValueError with messages - for invalid glstring instead of returning an empty string. Returning an empty string doesn't signal any error.