[% IF ( item = nhs_number.match('(\d{3})(\d{3})(\d{4})') ); item.join; # defaults to single space ELSE; 'PLEASE USE THE NHS NUMBER'; END; %]