Add const to error and newstring functions
4 files changed