add function which validates if a string contains an IPv4 address