Refactor string modules again.