function that takes x and returns string