Question: Is there a function to remove the last cell from array?

it's a string array like: `{"a","b","c",""}`.

Answer: 
An array is a fixed-size collection object. That makes it woefully inadequate for what you want to do. The best you could do is create *another* one with one less element. That's expensive.

Fix the real problem, this should be a `List<string>`, now it's simple.
1. Create new array equal to existing array size -1
2. aNewArray = aOldArray

Ofcourse you could just null the last element in your array, but that would result in problems later. Otherwise, use a nice flexible list.