Text, cut and stitched
Real apps juggle text all day: cutting out a first name, splitting a list of tags, tidying phone numbers. Strings have a toolbox of methods for exactly this.
Cutting and searching
const city = "Kathmandu";
console.log(city.slice(0, 5));
console.log(city.slice(-4));
console.log(city.includes("man"));
console.log(city.startsWith("Kath"));
console.log(city.indexOf("d"));