added config option for text length