Convert char array to string in java