added print string function