add proc to strip leading whitespace; move string utils into new file