The whole issue was to assign a String into a String[]. Below is the best possible code I can come up with...
which was removed for spoonfeeding.