this could be done more performant if using strrpos