you don't need to introduce yet an other variable & substr, see http://3v4l.org/PjDee