Refined the class StringLengthComparator for the demo of "21 Use
function objects to represent strategies".