var a:String = "freestyle"; trace(a.substr(0, 4)); var b:String = "robert"; b = b.substr(0,1).toUpperCase() + b.substr(1, b.length - 1); trace(b)