Is indexOf case sensitive
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var example:String = "Cool. This is a cool as both cool (lowercase) and Cool."; var search:String = "cool"; trace( example.indexOf( search ) ); } } }