Fixed wrong strrpos comparisons