[PATCH 4/4] lib/jxr: move out of loop strlen for better codegeneration by compiler and refactor