Check length range of base and keyword individually