Also remove newlines at the end