prefer #tr or #sub over gsub when possible
avoid parallel assignment if possible