Make grid options case sensitive and account for remainder distribution