Fixes #7164: Cannot create a domain that starts or ends with '.'

@isratrade it should. I changed it to only change columns that are added to `dot_strip_attrs`