Yes it is.
Please have a look at substr and Equality Operators.
In reply to Re: Matching first Letters of two words by linuxer in thread Matching first Letters of two words by Anonymous Monk