Bash has feature parameter expansion that allows you to manipulate variables in your script.

variables or parameters are used to store the data. It allows to transform the variable value into new value using expansion syntax.

Syntax ${variable:options}

${parameter:-default}