initialise char arrays to 0