Preserve string length of pid state.