handle strings in function