sort out casing of filename