Removed extra new line in loop