Removing extraneous dot from string keys