add: max option to avoid more chars then the max.