added replace for carriage return with cap D