Update String.php

Added some more doc. Bugfixing and str() method renamed to toString().