Sanitarize input: remove trailing '?' character