lib: make string arguments const

For lookup routines, make arguments const where possible.
5 files changed