handle strings in functions