Use 2D array for map instead of array of string, then map will be mutable object which easier to manipulate.