String assignment and comparison