@lehmannro
Negative length values [was introduced in bash 4.2](http://wiki.bash-hackers.org/scripting/bashchanges#quoting_expansions_substitutions_and_related) (in 2011),  so if you would like not to support older versions of bash, then I could make this change.