Interface for parsing a string.