use Interval type instead of string