Shorten str for case insensitive dict