Minor code reduction, 1 less instruction in routine.
Modified several instructions for less processing and less code.
Some mods for less processing.
Similar reduction based on mystrdup.
Only need to test "r" once, then reorganized based on likelyhood of which code (for *r) may be seen 1st (eg: least likely to see '\n' until end of string).
couple of typos "initial"