added more simple methods: startsWith and endsWith