you can add set -x at the top of the script and see what comes out - it's easier to debug the quoted question...
set -x