Remove newlines before returns