Simpler printing of strings with periods