Php Remove String From End Of Stringregex Replace