I have this string which might have a hyphen in it "-"
What I want to do is
if I get a hyphen then take all characters after hyphen
else take only all the characters starting from the 5th position of the string
How can this be achieved?
Only thing i could not figure out is how to go from a certain position till the end of the string
For instance......in the string "United States"
I want to go from 5th character till end..ie. "ed States"
how can i give second paramater in the substring here