reuse the String method