remove question mark if it exists

figured this would be nice so we dont have to always slice `location.search`