lastIndexOf would break