PHP Code:
tailor_inp1.text = this.t[0];
tailor_inp2.text = this.t[1];
tailor_inp3.text = this.t[2];
tailor_inp4.text = this.t[3];
tailor_inp5.text = this.t[4];
Stuff like this could easily be using a for() statement... as for chat commands, you should at least be doing if, else if, else if etc or, as Stan pointed out, a switch statement.