[ticket/1] Fixed function to strrpos() for last occurrence