made sml functions return strings