raise exception for bad string in query description