change doAnalysis() return type to string[]