Fix Syn wipe prefix and clean input query