Maxima Function
sinvertcase (string)
sinvertcase(string,start)
sinvertcase(string,start,end)
Returns string except that each character from position start to end is inverted. If end is not given, all characters from start to the end of string are replaced.
(%i1) sinvertcase("sInvertCase"); (%o1) SiNVERTcASE