stem for string document with mutable strings