Having trouble passing string as argument