made a string argument be reference to improve performance.