Fixed getStr() method for IPv4