#18 progress: added StringAnalysisFunction and StringAnalysisComponent to simplify the type signature for common cases.