Factory pattern
correct replace line break with br
move to model, control folder, fix jsp include
trim string