In all four cases below, the exclamation mark should be on the left side of the first line and on the right side of the second line.
שלום! hello!
שלום! hello!
שלום! hello!
שלום! hello!