Convert string to integer - performance comparison