you tried with "indexOf" ?
Message.indexOf(string,start)
It gives back the position of the first time that appears the character indicated by parameter in string. If it does not find the character in string it gives back -1. The second parameter is optional and serves to indicate from that position is desired that begins the search.