And one further comment, please stop using echo for tests like this, use printf instead ... when these tests are run in a system or shell where echo uses the SysV rules, then the results aren't what you'd expect, all because the echo is changing the strings behind the scenes (you don't get to see the actual input or results).
kre