bug fix
sort lines
remove duplicates command
remove manual trimming code
replace all