Add test for String::trim()