endsWith
fixed recursivity.