I\'m looking for help refactoring this messy code part. It should handle the following house number formats