removed obsolete check in str
removed strange division by zero fix