Codes of some string algorithms