<?php $form->addText('zip', 'PSČ:') ->addCondition($form::FILLED) ->addFilter(function ($value) { return str_replace(' ', '', $value); });