~ character case correction