store strings in function, not in global space