Converts into function that takes a string as argument