add shell functions concat and endswith