Add method to truncate string representation of byte array