Strip colour codes unless permitted