Bash Script Replace String In Apex