char ch1 = str.charAt(0);

Read more of this post