What was United States stance before 1917 in world war 1? Was it neutral?

Officially, yes.