Make sure text is a string for getMeasure