Fixed 18 failure using .length(), .substring(), .indexOf(), and lastIndexOf()