Bash Replace Part Of A Given Input