Maxima Function
sposition (char, string)
Returns the position of the first character in string which matches char. The first character in string is in position 1. For matching characters ignoring case see ssearch.
ssearch