Fixed issues while entering an IP with whitespaces
Fixed issues while entering an IP with whitespaces