diff --git a/libraries/util.bash b/libraries/util.bash index 31ccda8b..fbe24153 100755 --- a/libraries/util.bash +++ b/libraries/util.bash @@ -691,7 +691,7 @@ function trimString() { local -r string="${1}" - sed -e 's/^\s*//g' -e 's/\s*$//g' <<< "${string}" + sed 's,^[[:blank:]]*,,' <<< "${string}" | sed 's,[[:blank:]]*$,,' } function warn()