Testing whether string starts with or end with another string January 16, 2023 by Tarik There are built in methods: "String".start_with? "S" # true "String".end_with? "4" # false