Change IP parsing to not depend on spaces in names