Fixed typo in the string -> algorithm conversion