trim prototype string