removing question mark from query