Setting minimum digits in outgoing SMS

I’m looking for a setting that will prevent playsms from sending texts to numbers that are less than the valid digits in my country, in my case 11. For some reason the modems occasionally receive texts from the provider (4 digits) and random shortcode numbers and I have an autoreply set up, which can cause a feedback loop (in yesterday’s case, about 1500 texts).

Any ideas?