Function isValidLineHeadValue