replaced string literals with numbers where appropriate