lower-level string operations to try to reduce memory load