check for collection names that begin or end with '.'