Added javadoc for trimArr method