I am displaying matching records of data using "Contains" linq property like this.
a=> a.user.displayname.contains(searchtext);
The result are coming prefect but some times a.user.displayname having more than 2 spaces then results are not coming.How to trim database data a.user.displayname .please tell me .
displayname :
venkatesh duggirala,
mic thomson
morespaces in database data.
Thanks, Venkat.