Precursors of a Mott insulator in modulated quantum wires