Added class to generate pattern string

Signed-off-by: Shivam Dixit <shivamd001@gmail.com>
Added input docs

Signed-off-by: Shivam Dixit <shivamd001@gmail.com>