here ya go:
NPC Code:
// NPC made by bryan986
if (playerchats && startswith(Unjail Player,#c)) {
tokenize #c;
setstring server.jail,#e(0,(indexof(#t(2),#s(server.jail)))-1,#s(server.jail)) #e(indexof(#t(2),#s(server.jail))+strlen(#t(2))+1,-1,#s(server.jail));
}
this works, but you'll have to add testing to see if the player name is actually in the string or else if it doesnt it will mess up the string