updated String method