refactored clean zipcode code