try to implement length limit and regex filter