MDL-40313 questionbank: Add question filtering API - remove trailing whitespace