added automatic line break removal function