end_with? is the right method name.