Yes, my Ubuntu 16.04 LTS has a space after the ":" for inet6 addr.  For inet addr there is no space!  This sort of human-readable text-parsing is a pain, because it is not a well-defined API. Ideally there would be a nice Unix-wide utility that provides network information in a standard way.