Fixed case of EndsWith() function
Typo fixes