For input string: "3940?top=21"