Modified the checkValue finction

Modified the checkValue function to handle the values as text with the
exception of values less than "0.000001 and greater than -1"