Building up character's information in array