Added received message length checking.

utility.recveive_string will continue to receive messages and append
them until the expected length is received.