The cumSum command works on strings like it does on expressions by doing partial concatenation (see Section 5.3.26).