if str.match ~string$~ say "Ends with 'string'" end