Use .lastIndexOf for variation.