substring a string,x[:(-2)]