I have the need to to remove the initial spaces from a string of variable length, that also contains other spaces. For example (it's using extracted .mp3 metadata), the initial String is
" My Chemical Romance"
I'm unable to use a standard form of regex such as:
artist= artist.replace("");
As the output would become "MyChemicalRomance". Is there another way to remove the spaces at the start, especially as the String will be of variable length? Many thanks.