extended function Array.last, String.trim added