rough implementation of parsing delimeters