fixed str->number convertion