Yeah, Rafiq's apology was absolutely textbook. Respond swiftly, make no excuses, give a reason for having those views at the time and why you no longer have them, apologise for what you said and not for 'any offence caused'.
When it comes to empty words, everybody has said something stupid at one time or another. I like to think a sincere, genuine apology will still be recognised and accepted by most people.