trim (l|L) in the integer literal before base caculation
(cherry picked from commit 7a69d25)