using str versus echo methods