update shell functions concat and endswith