Handled quoted invalid ranges

Closes #7