Simple Programs on Strings and Their Decision Problems