Find all files (type f) in the current directory and its subdirectories (maxdepth 3) and execute the command "sed -i '' 's/string/otherstring/g' {}" on each of them.
find ~ -maxdepth 3 -type f -exec sed -i '' 's/string/otherstring/g' {} \;