I'm assuming you're using Python 3...
readline returns a bytes datatype. bytes can be converted to a string with the decode method...
str = val.decode( 'ascii' )
The carriage-return-line-feed can be removed with the strip method...
str = str.strip()
All of that can be performed at once...
str = ser.readline().decode( 'ascii' ).strip()