Prefix a field in logstash based on size/length of field

Hello! I have a field (string) called clubcode. Valid incoming values are say, 014, 14, 22, 022, 111. I want to replace 14 with 014 and 22 with 022 so that I can aggregate using clubcode as term in Kibana. How do I achieve this in logstash i.e. prefix clubcode with a 0 if the incoming size of clubcode data is 2 digits. Thanks!