fix documentation of String module
fix spec and add more test for String.duplicate/2
Merge pull request #2861 from jw2013/string

Improve String module