Fixing obvious bug where string was not converted to float for comparison