Refactored string ip parsing into a separate class.

Signed-off-by: retep998 <retep998@verizon.net>