Not sure the intention here, but `${#var}` is going to return a number (the length of the string in `$var`), surrounding that in backticks will attempt to execute it. The "command not found: 126" error seems accurate.