str not needed (it's  string). it's needed in the error though (could be anything)