I have a last and first name string such as "smith james.jpg" and want to change it to the first four of the last name, and first two of the first name, and removing the space resulting in "smitja.jpg" Some names aren't four letters long, and some people have three parts to their name, but I'm not too worried about those outliers. Thanks for any help. Some examples.
peterson sarah.jpg to petesa.jpg
cox paul.jpg to coxpa.jpg
henderson ariel.jpg to hendar.jpg