improve SourceTest
use StringBuilder where possible
made RegEx faster