Updating first letter of all words of a String

 import java.util.*;


public class FirstLetterToUpperCase{
public static void main(String args []){
Scanner sc = new Scanner(System.in);
System.out.println("Enter the sentence");
String str = sc.nextLine();
String upperCaseString = "";
Scanner lineScan = new Scanner(str); //constructor created because hasNext fun doesnt work with str

while(lineScan.hasNext()){
String word = lineScan.next();
upperCaseString += Character.toUpperCase(word.charAt(0)) + word.substring(1) + " ";
}
System.out.println(upperCaseString.trim()); //trim will remove space from beginning and ending
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...