int pos = strfind(s, 'P',1, strlen(s)); str s1 = substr(s,1,pos-1); str s2 = substr(s,pos+1, strlen(s)-pos-1);