added formating for SQL strings to format_input_variables