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