Fix endwith keyword