String#clear doesn't exist in 1.8
Merge pull request #15 from eric/1.8-support

String#clear doesn't exist in 1.8