remove line break in method