Assuming you are asking how to do that in Javascript, then you would first have to explain what the rule is for getting the substring you are interested in. I guess the rule is not "the last 15 characters", although that would work for your example. So, what's the rule? Once you state the rule, it may well become obvious how to write code for that rule.
There's a city wid manhunt for this tiny ad:
Gift giving made easy with the permaculture playing cards