@mityaJun 30.2009 — #substring() mixed with indexOf() is what you need.
substring takes a part of a strength equal to the length you specify in the arguments, while indexOf finds the index (starting from 0) of a particular character within the string.