Simply check overlap by checking if b[0] is in between the range of a[0] and a[1], If yes ? then offcourse it do overlaps otherwise not.
Convert string into float and Simply Compare the float value, and give and exception if the value is unable to convert to float.