My attempt to create a string class for php based off of the Java string class