Ignore dots at the end when determining the suitable region.