Simplify cloudwatch code, extract stringSrc