This function will take a string and format it's variables.
This function will take a string and format it's variables.