Made maxlength and shortcut on/off configuration for replace, slightly tweaked markov behavior