fix minor issue in ip validator utility
optimize ip validation utility
change test ip validation implementation in preprocessor
add descriptive comments for custom matching methods.