string manipulation on file contents

a refresher on string functions