clirar: Performance improvements
Use string comparison instead of regexp matching where possible.
Use QLatin1String in startsWith().