Convert getQueryVariable result to string