improvements to irGrade string handling