use strict comparison for message length