added "const" to some string function parameters