fix and simplify a few str* asm library functions