added ends with string method