better fix for trailing spaces issue
improve function
refactor calling of toxic_string functions
merge