i need to get first 8 characters after replacing whitespaces of a two string example "united states of america" by find and replace removed whitespaces "unitedstatesofamerica" but i need string upto length of 8 after removing whitespaces ie "unitedst" pls help me