corrected learner bug with string label's - added a label check and sanitization