fixed multiple character check plus smaller numbers before bigger numbers