When automarking, trim users submitted flag and the correct flag