check for empty range and weight strings