use bounds-checking lookup functions for string constants