remove formatting characters from script