Implemented startsWith and endsWith methods in S
Match feature for S class