fix shrink problem - not replacing new line characters.