modify parameters in beginning-of-string to avoid break thing-copy-sting-to-mack