Added sprintf_compare function for comparing placeholders