Clean up formatting of ip address functions