mb_strrpos instead of loop