Convert all segments to lowercase before processing