Convert a string to a dot case.