MDL-40313 questionbank: Add question filtering API, correct traling whitespace