Used string formatting in function