When you need to remove character from the beginning of a string the easiest way to go is to use the 'cut' utility.
Here is an example of how to remove character one to four of a string :
1
echo "This is a test" | cut -c 1-4
This will output :
This
1
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.