Fix for Issue 5

substr method was being called on a Number object.