replace string literals with constant references