remove costly indexOf - see revision 932588 of core's PropertyHelper

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/props/trunk@933177 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/org/apache/ant/props/NestedPropertyExpander.java b/src/main/org/apache/ant/props/NestedPropertyExpander.java
index c9aadf2..dc1a8f9 100644
--- a/src/main/org/apache/ant/props/NestedPropertyExpander.java
+++ b/src/main/org/apache/ant/props/NestedPropertyExpander.java
@@ -39,7 +39,8 @@
     public String parsePropertyName(String value, ParsePosition pos,
             ParseNextProperty parseNextProperty) {
         int start = pos.getIndex();
-        if (value.indexOf("${", start) == start) {
+        if (value.length() - start >= 3
+            && '$' == value.charAt(start) && '{' == value.charAt(start + 1)) {
             parseNextProperty.getProject().log("Attempting nested property processing",
                     Project.MSG_DEBUG);
             pos.setIndex(start + 2);