correct test of "$", should require \$