walk on the array and trim everything, find click, after click remove everything what's left