Added toString tests for String class