Returns the server state as string.
ServerStateToStr converts the data in the State parameter (the current ServerState) to a string and returns the result.