Spark SQL INITCAP not capitalizing letters after periods in abbreviations

dkhodyriev1208
Databricks Partner

Using SELECT INITCAP("text (e.g., text, text, etc.)"abbreviations with periods like e.g. are not being fully capitalized.

Current behavior:

Input:  "text (e.g., text, text, etc.)"Output: "Text (e.g., Text, Text, Etc.)"

Expected behavior:

Output: "Text (E.G., Text, Text, Etc.)"

Version: 

16.4.x-scala2.12