Prova così:
codice:
miaStringa=new String("P00001049U00016");
var miaSubstring=miaStringa.substr(0,9);
Secan