A-function from a string#589