Fixed faulty Text.partition()
Merge fix of Text.partition into repo-2.0