This needs to be endsWith

Signed-off-by: Chris Sanders <zidane@outlook.com>