Fixes formatting for getQueryVariable function.