Changed lines to pass only strings to function